Skip to content

WIP: feat: add createInstance api #3874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open

WIP: feat: add createInstance api #3874

wants to merge 17 commits into from

Conversation

2heal1
Copy link
Member

@2heal1 2heal1 commented Jul 2, 2025

Description

  • add createInstance and registerShared api
  • deprecate init api
  • rename FederationHost to ModuleFederation
  • rename FederationRuntimePlugin to ModuleFederationRuntimePlugin
  • add RUNTIME-009 error code: Please call createInstance first

Related Issue

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Copy link

changeset-bot bot commented Jul 2, 2025

🦋 Changeset detected

Latest commit: ec9b669

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 33 packages
Name Type
@module-federation/runtime Major
@module-federation/webpack-bundler-runtime Major
@module-federation/bridge-react Major
@module-federation/data-prefetch Major
@module-federation/runtime-core Major
@module-federation/modern-js Major
@module-federation/node Patch
@module-federation/devtools Major
@module-federation/dts-plugin Major
@module-federation/nextjs-mf Patch
@module-federation/retry-plugin Major
@module-federation/runtime-tools Major
@module-federation/bridge-vue3 Major
@module-federation/enhanced Major
remote5 Patch
@module-federation/rsbuild-plugin Major
@module-federation/rspack Major
@module-federation/inject-external-runtime-core-plugin Major
@module-federation/rspress-plugin Major
@module-federation/storybook-addon Major
@module-federation/modernjsapp Patch
website-new Patch
@module-federation/sdk Major
@module-federation/managers Major
@module-federation/manifest Major
@module-federation/third-party-dts-extractor Major
@module-federation/bridge-shared Major
@module-federation/bridge-react-webpack-plugin Major
@module-federation/error-codes Major
create-module-federation Major
@module-federation/cli Major
@module-federation/esbuild Patch
@module-federation/utilities Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Jul 2, 2025

Deploy Preview for module-federation-docs ready!

Name Link
🔨 Latest commit ec9b669
🔍 Latest deploy log https://app.netlify.com/projects/module-federation-docs/deploys/686cbb48f7848a00084d1707
😎 Deploy Preview https://deploy-preview-3874--module-federation-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@2heal1 2heal1 changed the title WIP: rename FederationHost WIP: add createInstance api Jul 3, 2025
@2heal1 2heal1 force-pushed the docs/federation-class branch from 1cd635b to 5072973 Compare July 3, 2025 12:16
@2heal1 2heal1 changed the title WIP: add createInstance api feat: add createInstance api Jul 4, 2025
@2heal1 2heal1 changed the title feat: add createInstance api WIP: feat: add createInstance api Jul 4, 2025
@2heal1 2heal1 changed the title WIP: feat: add createInstance api feat: add createInstance api Jul 7, 2025
@2heal1 2heal1 changed the title feat: add createInstance api WIP: feat: add createInstance api Jul 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant